package com.wbxqy.car_management_system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 行程表
 * </p>
 *
 * @author wbxqy
 * @since 2024-07-04
 */
@Getter
@Setter
@TableName("t_trip_wbxqy")
@ApiModel(value = "Trip对象", description = "行程表")
public class Trip implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("行程ID，主键")
    @TableId(value = "trip_id_wbxqy", type = IdType.AUTO)
    private Integer tripIdWbxqy;

    @ApiModelProperty("用车申请ID，外键")
    private Integer requestIdWbxqy;

    @ApiModelProperty("用车申请")
    @TableField(exist = false)
    private CarRequest carRequest;


    @ApiModelProperty("出发地")
    private String startLocationWbxqy;

    @ApiModelProperty("目的地")
    private String endLocationWbxqy;

    @ApiModelProperty("出发时间")
    private LocalDateTime startTimeWbxqy;

    @ApiModelProperty("到达时间")
    private LocalDateTime endTimeWbxqy;

    @ApiModelProperty("行驶距离（公里）")
    private BigDecimal distanceWbxqy;

    @ApiModelProperty("行程相关图片的URL")
    private String imageUrlWbxqy;

    @ApiModelProperty("行程状态")
    private String tripStatusWbxqy;

    @ApiModelProperty("记录创建时间")
    private LocalDateTime createTimeWbxqy;

    @ApiModelProperty("记录更新时间")
    private LocalDateTime updateTimeWbxqy;

    @ApiModelProperty("是否删除标记，逻辑删除")
    private Boolean isDeletedWbxqy;


}
